package yt.demo.appcoresystem.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import yt.demo.appcommondb.base.BaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "SystemDictType", description = "字典类型")
public class SystemDictType extends BaseEntity<SystemDictType>  {

    @TableId
    @Schema(name = "id", description = "主键ID")
    @NotNull(message = "id不能为空") // 更新时确保此字段不能为空
    private Long id;

    @Schema(description = "字典名称")
    private String name;

    @Schema(description = "字典标识")
    private String code;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "备注")
    private String remark;


}
